//
package com.ny.mapper;

import com.ny.entity.Users;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface UserMapper {
    //编写s   ql语句
    @Select("select * from users where username = #{username} and password =#{password}")
//登录的方法
    Users findUserByUsernameAndPassword(@Param("username") String username, @Param("password")String password);

}
